<me:UIZABED x:Class="WPFExcelReport.TSZA02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                      x:Name="TV" 
                    Loaded="Window_Loaded"
     >
    <me:UIZABED.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIZABED.Resources>
    <WrapPanel> 
                    <Button  Grid.Column="1" Click="ManageCommand" Width="12" Height="20" HorizontalAlignment="Left" Visibility="{Binding IsMaster, Converter={StaticResource bv}}" >
                        <Button.Background>
                            <ImageBrush  ImageSource="/ImagePackage;component/Images/Extend.png" />
                        </Button.Background>
                    </Button>
                <WrapPanel Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}">
                    <TextBlock Text="{Binding ZABBEZ,Converter={StaticResource gb2312}}"  Width="Auto"/>
                </WrapPanel>

        <ComboBox   DropDownOpened="ComboBox_DropDownOpened" 
                    IsEditable="True" Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                    Width="60"  
                    SelectedValuePath="ZABNR" 
                    DisplayMemberPath="ZABNR"
                    ItemsSource="{Binding Source={StaticResource vwMaster}}" 
                    IsSynchronizedWithCurrentItem="True" 
                    > 
                </ComboBox>
                 <TextBlock Text="{Binding ZABBEZ,Converter={StaticResource gb2312}}"
                           MinWidth="160"
                           Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                           />
            </WrapPanel>  
</me:UIZABED>
